Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken multipart processor on windows #1137

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

jabdr
Copy link
Contributor

@jabdr jabdr commented Aug 24, 2024

The multipartBodyProcessor is broken on windows, because it creates a temporary file without closing it.

This would usually not be a problem, as the gc would take care of it, but the tests on windows fail, because go test tries to delete the files before gc cleaned the file descriptors.

Windows refuses to delete files as long as the file descriptor is open. Closing the temporary file fixes this issue and go test is able to cleanup the files.

@jabdr jabdr marked this pull request as ready for review August 24, 2024 17:14
@jabdr jabdr requested a review from a team as a code owner August 24, 2024 17:14
@fzipi fzipi changed the title fix: broken mutlipart processor on windows fix: broken multipart processor on windows Aug 25, 2024
Copy link

codecov bot commented Aug 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.14%. Comparing base (4ff1f76) to head (c42a842).
Report is 73 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1137      +/-   ##
==========================================
+ Coverage   82.72%   83.14%   +0.42%     
==========================================
  Files         162      164       +2     
  Lines        9080     7688    -1392     
==========================================
- Hits         7511     6392    -1119     
+ Misses       1319     1042     -277     
- Partials      250      254       +4     
Flag Coverage Δ
default 83.14% <100.00%> (+5.30%) ⬆️
examples 83.14% <100.00%> (+56.71%) ⬆️
ftw 83.14% <100.00%> (+35.77%) ⬆️
ftw-multiphase 83.14% <100.00%> (+33.59%) ⬆️
tinygo 83.14% <100.00%> (+7.73%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jptosso jptosso merged commit 4ace372 into corazawaf:main Aug 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants